package com.springboot.cloud.demos.producer.service;

import com.springboot.cloud.demos.entity.param.FollowQueryParam;
import com.springboot.cloud.demos.entity.po.Follow;

import java.util.List;
import java.util.Map;

public interface IFollowService {
    /**
     * 获取
     *
     * @param id
     * @return
     */
    Follow get(String id);

    /**
     * 新增
     *
     * @param follow
     * @return
     */
    boolean add(Follow follow);

    /**
     * 查询
     *
     * @return
     */
    List<Follow> query(FollowQueryParam param);
 /**
     * 查询
     *
     * @return
     */
  Follow query(String user_id, String follow_user_id);

    /**
     * 更新信息
     *
     * @param follow
     */
    boolean update(Follow follow);

    /**
     * 根据id删除
     *
     * @param id
     */
    boolean delete(String id);
    /**
     * 根据id删除
     *
     * @param userId
     * @param followUserId
     */
    Integer deleteByMap(String userId,String followUserId);


}
